/**
 * @author Bill
 * @version 1.10
 * @Since  2015
 */
package com.coding.springboot.demo.entity;

import javax.persistence.*;

import java.util.*;

@Entity
@Table(name = "t_wxuser")
public class Twxuser extends IDEntity {
	private static final long serialVersionUID = 5454155825314635342L;

	//alias
	public static final String TABLE_ALIAS = "Twxuser";
	public static final String ALIAS_USERID = "userid";
	public static final String ALIAS_WXNO = "wxno";
	public static final String ALIAS_GENERALID = "generalid";
	public static final String ALIAS_CREATETIME = "createtime";
	public static final String ALIAS_PHOTOURL = "photourl";
	public static final String ALIAS_NICKNAME = "nickname";

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START

	@Column(name = "WXNO",length = 32,nullable = false)
	private String wxno;
	@Column(name = "GENERALID")
	private Long generalid;
	@Column(name = "CREATETIME")
	private Date createtime;
	@Column(name = "PHOTOURL",length = 255)
	private String photourl;
	@Column(name = "NICKNAME",length = 255)
	private String nickname;
	//columns END


	public String getWxno() {
		return wxno;
	}

	public void setWxno(String wxno) {
		this.wxno = wxno;
	}

	public Long getGeneralid() {
		return generalid;
	}

	public void setGeneralid(Long generalid) {
		this.generalid = generalid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getPhotourl() {
		return photourl;
	}

	public void setPhotourl(String photourl) {
		this.photourl = photourl;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
}

